//
//  SelectPhotoTool.h
//  Rail
//
//  Created by hychen on 2018/3/4.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SelectPhotoTool : NSObject
/**
 *  获取最新照片时间
 *
 *  @param modelArray 照片集合
 *  @param completion 完成代码块
 */
+ (void)newestDateWithModelArray:(NSMutableArray *)modelArray completion:(void (^)(NSDate *newestDate, BOOL isSameDay))completion;

/**
 *  把ALAsset数据的数组转为DPPostImageModel的数据数组
 *
 *  @param assetsArray ALAsset数组
 *
 *  @return DPPostImageModel的数据数组
 */
+ (NSMutableArray *)getPostImageModelArrayWithAssetsArray:(NSMutableArray *)photoArray;
@end
